﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CompareDB
{
    public abstract class FjCsTable
    {
        public string Name { get; set; }
        public int Rows { get; set; }
        public FjCsLegend Legend { get; set; }
        public IList<FjCsColumn> Columns { get; set; }

        public abstract bool Compare(FjCsTable table);

        public virtual bool AddColumn(FjCsColumn column)
        {
            Columns.Add(column);
            return true;
        }

        public virtual bool RemoveColumn(FjCsColumn column)
        {
            return Columns.Remove(column);
        }

        public override string ToString()
        {
            return base.ToString();
        }

    }
}
